<?php

namespace App\Http\Controllers\Index;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

use App\Models\Imgs;

class Banner extends Controller
{
    public function index()
    {
        $data = Imgs::select('title', 'img_url')->GetShowIndex('banner')->get();

        return $this->code(200, $data, 'data');
    }
}
